package drg_group.changzhou_2022.ADRG;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import drg_group.changzhou_2022.Base;
import drg_group.changzhou_2022.MedicalRecord;
import drg_group.changzhou_2022.DRG.MDCB_DRG;

public class BU2 {
    public static String group(MedicalRecord record){
        String[] adrg_zd={"A52.100x005+G22*","A81.000","A81.000x002","A81.000x004","A81.000x006","A81.000x007","A81.001+F02.1*","A81.200","A81.200x001","B57.401+F02.8*","E71.301","E75.000x001","E75.000x002","E75.000x003","E75.000x004","E75.100x001","E75.100x002","E75.100x004","E75.101","E75.200x006","E75.200x007","E75.200x009","E75.200x010","E75.200x011","E75.200x012","E75.200x013","E75.201","E75.202","E75.203","E75.204","E75.205","E75.206","E75.300","E75.400","E75.400x002","E75.400x003","E75.400x004","E75.400x005","G12.000","G12.100","G12.100x001","G12.100x003","G12.100x004","G12.100x008","G12.101","G12.102","G12.103","G12.104","G12.200","G12.200x002","G12.200x005","G12.200x007","G12.200x008","G12.200x009","G12.200x010","G12.200x011","G12.200x012","G12.200x013","G12.200x015","G12.200x016","G12.201","G12.202","G12.203","G12.204","G12.205","G12.206","G12.207","G12.208","G12.209","G12.800","G12.800x001","G12.803","G12.900","G14.x00","G20.x00","G20.x00x006","G20.x01","G20.x02+F02.3*","G20.x03","G20.x04","G20.x05","G20.x06","G20.x07","G20.x08","G21.000","G21.001","G21.100","G21.101","G21.102","G21.200","G21.201","G21.300","G21.400","G21.401","G21.800","G21.800x002","G21.801","G21.900","G23.000","G23.000x002","G23.000x003","G23.100","G23.101","G23.200","G23.300","G23.800","G23.800x005","G23.800x006","G23.800x007","G23.801","G23.802","G23.803","G23.804","G23.900","G24.000","G24.100","G24.101","G24.102","G24.103","G24.104","G24.105","G24.106","G24.200","G24.200x001","G24.200x003","G24.201","G24.202","G24.300","G24.300x002","G24.300x003","G24.300x004","G24.400","G24.400x002","G24.400x003","G24.400x004","G24.500","G24.500x002","G24.501","G24.800","G24.800x008","G24.801","G24.804","G24.805","G24.806","G24.807","G24.808","G24.900","G24.900x003","G24.901","G24.902","G25.000","G25.000x002","G25.000x003","G25.000x004","G25.000x005","G25.000x006","G25.000x007","G25.000x008","G25.000x009","G25.100","G25.200","G25.200x002","G25.200x003","G25.200x004","G25.200x005","G25.200x006","G25.200x007","G25.200x008","G25.200x009","G25.201","G25.202","G25.300","G25.300x002","G25.300x003","G25.300x004","G25.400","G25.500","G25.500x003","G25.500x005","G25.501","G25.502","G25.600","G25.600x001","G25.601","G25.800x001","G25.800x004","G25.800x005","G25.802","G25.900","G25.901","G25.902","G25.903","G30.000","G30.000x002","G30.000x003+F00.0*","G30.000x004+F00.0*","G30.100","G30.100x002+F00.1*","G30.100x003+F00.1*","G30.800","G30.800x001","G30.800x003+F00.2*","G30.801+F00.2*","G30.802+F00.2*","G30.900","G30.901+F00.9*","G31.000","G31.000x003","G31.000x005+F02.8*","G31.000x006+F02.8*","G31.001","G31.002+F02.0*","G31.100","G31.100x007","G31.101","G31.200","G31.200x001","G31.200x005","G31.201","G31.202","G31.203","G31.800x004","G31.800x008","G31.801","G31.802","G31.803","G31.804","G31.805+F02.8*","G31.806","G31.807","G31.900","G31.900x003","G31.900x004","G31.900x006","G31.900x008","G31.900x009","G31.901","G31.902","G31.903","G31.904","G83.800x001","G95.002+M49.4*","M32.116+F02.8*"};
        String[] adrg_zd1={};
        String[] adrg_ss={};
        String[] adrg_ss1={};
        
        if (true && Base.contains(adrg_zd,record.zdList[0])){
            Base.groupMessages.putMessage(record.Index,"符合BU2入组条件，匹配规则：主诊断匹配");
                
            if (MDCB_DRG.BU20_group(record)){
                return "BU20";
            }
    
            if (MDCB_DRG.BU29_group(record)){
                return "BU29";
            }

            return "BU2";
        }else{
            return "";
        }
    }
}

